var allPeople=[
[{"id":1,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":2,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":3,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":4,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":5,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":6,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"}],
[{"id":7,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":8,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":9,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":10,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":11,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":12,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"}],
[{"id":13,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":14,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":15,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":16,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":17,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":18,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"}],
[{"id":19,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":20,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":21,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":22,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":23,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"},
{"id":24,"name":"bgg","url":"img/huojiangmingdan/images/huojiangtouxiang.jpg"}]
]

var myInfo={"name":"vito","url":"img/huojiangmingdan/images/huojiangtouxiang2.jpg"}
console.log($(".xzhuo img").length);//42
var id,dz;
for(var i=0;i<allPeople.length;i++){
	for(var j=0;j<6;j++){
		id= allPeople[i][j].id-1;
		dz= allPeople[i][j].url;
		$(".xzhuo img:eq("+id+")").attr("src",allPeople[i][j].url)
	}
}

$(".content").on("touchstart",".xzhuo",function(e){
	e.stopPropagation();
	console.log($(this).parent().attr("index"));
	$(this).children().attr("src",myInfo.url);
	
//	$(this).parent().index
})
